package cn.com.haopy.yue.ai.db.entity.arisk;

import cn.com.haopy.yue.ai.db.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.apache.ibatis.type.JdbcType;

import java.io.Serializable;

/**
 * @Description: @TableName hos_ad
 * @Author DuTao
 * @Date 2023/9/25 14:45
 */
@Data
@TableName(value = "arisk_ad", autoResultMap = true)
@Accessors(chain = true)
public class AIRiskAd extends BaseEntity implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
    /**
     * 广告标题
     */
    @TableField(value = "`name`", jdbcType = JdbcType.VARCHAR)
    private String name;

    /**
     * 所广告的商品页面或者活动页面链接地址
     */
    @TableField(value = "`link`", jdbcType = JdbcType.VARCHAR)
    private String link;

    /**
     * 广告宣传图片
     */
    @TableField(value = "`pic_url`", jdbcType = JdbcType.VARCHAR)
    private String picUrl;

    /**
     * 活动内容
     */
    @TableField(value = "`content`", jdbcType = JdbcType.VARCHAR)
    private String content;


    @ApiModelProperty(value = "排序")
    @TableField(value = "sort_order", jdbcType = JdbcType.SMALLINT)
    private Short sortOrder;

    @ApiModelProperty(value = "广告位置")
    @TableField(value = "position", jdbcType = JdbcType.SMALLINT)
    private Short position;

    /**
     * 是否启动
     */
    @TableField(value = "`enabled`", jdbcType = JdbcType.TINYINT)
    private Boolean enabled;

    /**
     * 是否是外部链接
     */
    @TableField(value = "`is_out`", jdbcType = JdbcType.TINYINT)
    private Boolean isOut;

    @ApiModelProperty(value = "广告详情")
    @TableField(value = "detail", jdbcType = JdbcType.VARCHAR)
    private String detail;
}
